package dev.alm.cqtakeoutservice.controller;

import com.alibaba.fastjson.JSONObject;
import dev.alm.cqtakeoutservice.common.CR;
import dev.alm.cqtakeoutservice.entity.User;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("test")
public class TestController {

    @GetMapping("http/get")
    public CR httpGet() {
        return CR.ok("http get");
    }

    @PostMapping("http/post")
    public CR httpPost(@RequestBody JSONObject json) {
        return CR.ok(json);
    }

}
